package cn.dida.service;

import cn.dida.model.Pageable;
import cn.dida.model.SalesmanPayrule;

import java.util.List;
import java.util.Map;

/**
 * Created by zhangzhiling on 2017/8/30.
 */
public interface SalesmanPayruleService {

    public Pageable<SalesmanPayrule> queryList(Integer companyId, String name, String adcode, Integer state, Integer page);

    public List<SalesmanPayrule> exportList(Integer companyId, String name, Integer state);

    public Integer insertPayrule (SalesmanPayrule payrule);

    public Integer updateState(Integer baseId,Integer state);

    public SalesmanPayrule getDetail(Integer baseId);

    public Integer updatePayrule(SalesmanPayrule payrule);

    public Pageable<Map<String,Object>> getProdAndAreaList(String adcode,String prodct, String area, String baseId,Integer state,Integer page);

    public Boolean test(Integer baseId);

    public Pageable<Map<String,Object>> payruleSearchList(Integer companyId,String prodct,String area,Integer state,Integer page);

    public List<Map<String,Object>> searchList_export(Integer companyId,String prodct,String area,Integer state);
}
